
class Base():
    def __init__(self,driver):
        self.driver = driver

    def geturl(self,url):
        self.driver.get(url)
    def find_ele(self,loc):
        return self.driver.find_element(*loc)
    def click(self,loc):
        self.find_ele(loc).click()

    def send_keys(self,loc,s):
        self.find_ele(loc).send_keys(s)

    def gettext(self,loc):
        return self.find_ele(loc).text

